package ddemo.dao;

import ddemo.pojo.Cbooking;
import ddemo.pojo.Pbooking;

import java.util.List;

public interface PbookingMapper {
    @Select("SELECT * FROM `parkingbook`")
    public List<Pbooking> getAll();
    @Select("UPDATE  `parkingbook` SET `userid` = #{userid},`usestatus` = #{usestatus} WHERE id = #{id} and time=#{time}")
    public  int book(@Param("userid") Integer userid, @Param("usestatus") String usestatus, @Param("id") Integer id, @Param("time") String time);

}
